//
//  MineCollectionTableViewCell.m
//  GiftItems
//
//  Created by lanou3g on 15/10/5.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "MineCollectionTableViewCell.h"

@implementation MineCollectionTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.backgroundColor = [UIColor clearColor];
        [self addSubview];
    }
    return self;
}

- (void)addSubview {
    self.picImage = [[UIImageView alloc] initWithFrame:CGRectMake(20, 10, 80, 80)];
    [self.contentView addSubview:self.picImage];
    
    self.tilte = [[UILabel alloc] initWithFrame:CGRectMake(self.picImage.frame.size.height + 40, 10, self.picImage.frame.size.width + 120, 50)];
    self.tilte.font = [UIFont systemFontOfSize:16.0];
    self.tilte.numberOfLines = 2;
    [self.contentView addSubview:self.tilte];
}


- (void)awakeFromNib {
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
